package entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: NGUYEN VAN NHAN
 * Date: 9/17/14
 * Time: 11:04 AM
 * Long Van Soft Solution Sjc.
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "PRODUCT_SOCIAL")
public class ProductSocial implements Serializable{
    private String ProductId;
    private String socialId;
    private Date shareTime;
    private String viewId;
    private String status; // enable/disable back link


    public ProductSocial() {
    }

    @Id
    @Column (name = "productId", length = 20)
    public String getProductId() {
        return ProductId;
    }

    public void setProductId(String productId) {
        ProductId = productId;
    }

    @Id
    @Column (name = "socialId", length = 20)
    public String getSocialId() {
        return socialId;
    }

    public void setSocialId(String socialId) {
        this.socialId = socialId;
    }

    @Id
    @Column (name = "shareTime", length = 50)
    public Date getShareTime() {
        return shareTime;
    }

    public void setShareTime(Date shareTime) {
        this.shareTime = shareTime;
    }

    @Column (name = "viewId", length = 20)
    public String getViewId() {
        return viewId;
    }

    public void setViewId(String viewId) {
        this.viewId = viewId;
    }

    @Column (name = "status", length = 255)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
